/** @format */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
html {
  height: 100vh;
  font-size: 12px;
  /* 禁止横滚动条 */
  overflow-x: hidden;
}

body {
  background: #f0f0f4;
}
/* 清除ul li的小点样式 */
ul li {
  list-style: none;
}
/* 滚动条 样式 */
::-webkit-scrollbar {
  width: 4px;
  background: transparent;
  opacity: 0.5;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  transition: all 0.3s;
  &:hover {
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    &::after {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.2);
      border-radius: 4px;
    }
    &:before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.2);
      border-radius: 4px;
    }
  }
}

.unset {
  box-shadow: unset !important;
}
/*  */
.container {
  max-width: 1128px !important;
}

@media (max-width: 575px) {
  html {
    font-size: 11px;
  }
  /* 伤寒金匮药 */
  /* .zheZhao,
  .zheZhao P {
    font-size: 0.6rem !important;
   
  }
  .zheZhao P {
    margin-bottom: 0rem;
  } */
  /* 伤寒金匮药end */
}

@media (min-width: 576px) and (max-width: 767px) {
  html {
    font-size: 16px;
  }
  input::placeholder {
    font-size: 14px;
  }
  /* 伤寒金匮药 */
  .zheZhao,
  .zheZhao P {
    font-size: 0.6rem !important;
    /* font-weight: 700; */
  }
  .zheZhao P {
    margin-bottom: 0rem;
  }
  /* 伤寒金匮药end */
}

@media (min-width: 768px) and (max-width: 991px) {
  html {
    font-size: 17px;
  }
  input::placeholder {
    font-size: 15px;
  }
  /* 伤寒金匮药 */
  .zheZhao,
  .zheZhao P {
    font-size: 0.6rem !important;
    /* font-weight: 700; */
  }
  .zheZhao P {
    margin-bottom: 0rem;
  }
  /* 伤寒金匮药end */
}

/* 大于992px以上 */

@media (min-width: 992px) {
  html {
    font-size: 18px;
  }
  input::placeholder {
    font-size: 16px;
  }
  /* 伤寒金匮药 */
  .zheZhao,
  .zheZhao P {
    font-size: 0.8rem !important;
    /* font-weight: 700; */
  }
  .zheZhao P {
    margin-bottom: 0rem;
  }
  .below1 {
    /* 浮动在左边 */
    position: absolute;
    top: 0;
    left: 0;
    /* 隐藏 */
    display: none;
  }
  .below3 {
    position: absolute;
    top: 0;
    right: 0;
    /* 隐藏 */
    display: none;
  }
  /* 伤寒金匮药end  */
}

a {
  color: #343a40;
}
/* 导航栏 */
.navbar-collapse {
  padding: 0.5rem 0;
}
.navbar {
  padding: 0;
  border: 0;
}
.navMenuBox {
  display: flex;
  width: 100%;
}
.menu {
  flex: 2;
}
/* 将menu下的第一个li里的a的左内边边距为0 */
/* .menu > li:first-child > a {
  padding-left: 0;
} */
.nav-tabs {
  border: 0;
  display: flex;
}
.searchInpBox {
  margin: 0;
  padding: 0;
  flex: 1;
}
.searchInpBox a {
  padding: 0;
}

.searchInpForm {
  justify-content: flex-end;
}
.searchInpForm input {
  /* 去掉活活蓝边框 */
  border: none;
  outline: none;
}

nav a {
  color: #fff !important;
  width: 100%;
}

nav a:hover {
  color: #7accd8 !important;
}
.active {
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.6);
  padding: 0.1rem 0.5rem;
  border-radius: 0.15rem;
}
.active > .nav {
  color: #189eb3 !important;
}
.nav-tabs .nav-link {
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.5rem;
}
.nav-tabs .nav-link i {
  margin-right: 0.3rem;
  font-size: 1rem;
}
.nav-item {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
  color: #189eb3 !important;
  /* 改成透明背景 */
  background-color: transparent;
}
/* 给logo添加动画效果 */
#logoBox:hover {
  animation: rotate-scale-up-diag-2 0.7s linear both;
}
@keyframes rotate-scale-up-diag-2 {
  0% {
    transform: scale(1) rotate3d(-1, 1, 0, 0deg);
  }
  50% {
    transform: scale(2) rotate3d(-1, 1, 0, 180deg);
  }
  100% {
    transform: scale(1) rotate3d(-1, 1, 0, 360deg);
  }
}
/*去掉input边框  */
input {
  border: none;
}
/* 导航栏end */

/* 章节标题 */
.headWord {
  width: 100%;
  color: black;
  font-size: 1.2rem;
  /* 加粗 */
  font-weight: bold;
}
/* 去掉点击章节标题的下划线 */
.btn-link.focus,
.btn-link:focus {
  box-shadow: none;
  text-decoration: none;
}
.btn-link:hover {
  color: #189eb3;
  text-decoration: none;
}
/* 去掉章节padding */
.card-header {
  padding: 0;
}
.card-body {
  padding: 0.5rem;
}
/* 条文加框 */
p {
  border: 1px solid #ccc;
  margin-bottom: 0.5rem;
}
/* 给 "不可"加提示 */
.cannot {
  color: red;
}

/* 方剂样式 */
.fanJi {
  color: #003b75;
}

.fanJi:hover {
  cursor: pointer;
}

/* 伤寒条文样式 */
.shangHanTiaoWen p {
  padding-left: 5px;
  padding-right: 5px;
}

.shangHanTiaoWen p:hover,
#fangJiBox p:hover {
  background-color: #ccc;
}

/* 剂量样式 */
.jiLiang {
  color: #28a745;
  font-size: 15px;
}

/* 自定义滚动条的样式 */
.table-responsive .table-wrapper-scroll-y {
  display: block;
  height: 100%;
  /* 禁横向滚动条 */
  overflow-x: hidden;
}

/* 改变滚动条的宽度和背景色 */
.table-responsive .table-wrapper-scroll-y::-webkit-scrollbar {
  /* width: 10px; */
  background-color: #f5f5f5;
}

/* 改变滚动条滑块的颜色 */
.table-responsive .table-wrapper-scroll-y::-webkit-scrollbar-thumb {
  background-color: #c1c1c1;
  border-radius: 10px;
}

/* 改变滚动条轨道的颜色 */
.table-responsive .table-wrapper-scroll-y::-webkit-scrollbar-track {
  background-color: #f0f0f0;
}

/* 针对Firefox的样式 */
.table-responsive .table-wrapper-scroll-y {
  scrollbar-width: thin;
  scrollbar-color: #c1c1c1 #f0f0f0;
}

/* 伤寒金匮药 */

.fanJi-item {
  position: relative;
  width: 100%;
  /* height: 100%; */
  flex-shrink: 0;
  border-radius: 5%;
  margin: 0.05rem;
  /* 子元素上 */
  scroll-snap-align: start;
}

.fanJi-item img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.zheZhao {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: #343a40;
  /* 设置半透明 */
  opacity: 0;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 1.3rem;
  border-radius: 5%;
}

.zheZhao p {
  font-size: 1.3rem;
  font-weight: 700;
}

.zheZhao:hover {
  cursor: pointer;
  opacity: 0.8;
}

.below {
  display: flex;
  width: 100%;
  height: 86vh;
  /* height: 46rem; */
  background-color: #dfdfdf;
}
.below1 {
  /* 浮动在左边 */
  /* position: absolute;
    top: 0;
    left: 0; */
  /* 隐藏 */
  /* display: none; */
  width: 10%;
  height: 86vh;
  overflow-y: auto;
  overflow-x: hidden;
  /* 隐藏y轴滚动条 */
  scrollbar-width: none;
  -ms-overflow-style: none;
  background-color: #dfdfdf;
  /* y:垂直方向 
    mandatory:超过临界值,自动到下一个容器
    */
  scroll-snap-type: y mandatory;
}

.below2 {
  position: relative;
  display: flex;
  flex: 1;
  background-color: #dfdfdf;
}

.floatLeftBox {
  position: absolute;
  top: 0;
  left: -10%;
  width: 10%;
  height: 86vh;
  background-color: #492727;
  /* 设置为透明 */
  opacity: 0;
}
.floatRightBox {
  position: absolute;
  top: 0;
  right: -10%;
  width: 10%;
  height: 86vh;
  background-color: #492727;
  /* 设置为透明 */
  opacity: 0;
}

.below2 .below2-left {
  flex: 1;
  background-color: #ffffff;
  margin: 2% 1% 2% 2%;
}
.below2 .below2-right {
  flex: 1;
  background-color: #ffffff;
  margin: 2%;
}

.below .below3 {
  /* position: absolute;
      top: 0;
      right: 0; */
  /* 隐藏 */
  /* display: none; */
  width: 10%;
  height: 86vh;
  overflow-y: auto;
  overflow-x: hidden;
  /* 隐藏y轴滚动条 */
  scrollbar-width: none;
  -ms-overflow-style: none;
  background-color: #dfdfdf;
  /* y:垂直方向 
    mandatory:超过临界值,自动到下一个容器
    */
  scroll-snap-type: y mandatory;
}

/* ------------------------------------------ */

/* 底部横向样式 */
.abeam {
  position: relative;
  height: 10vh;
  width: 100%;
  background-color: #dfdfdf;
  overflow: hidden;
  border-bottom: 1px solid #fff;
}

.middle {
  position: relative;
  /* width: 10vh;
      height: 100vh; */
  background-color: #dfdfdf;
  overflow: auto;
  /* 不显示滚动条 */
  scrollbar-width: none;
  transform-origin: left top;
  transform: rotate(-90deg);
  scroll-snap-type: y mandatory;
}
.tertiary {
  /* width: 100%; */
  display: flex;
  position: absolute;
  top: 0;
  /* border: 1px solid red; */
  transform-origin: left top;
  transform: rotate(90deg);
}

.tertiary-card {
  width: 200px;
  height: 100%;
  /* border: 1px solid black; */
  scroll-snap-align: start;
}

/* ------------------------------------------ */

/* 弹窗中的条文  */
.tiaoWenCard {
  max-height: 35vh;
  overflow: auto;
}
.tiaoWenCard p:hover {
  background-color: #c1c1c1;
  cursor: pointer;
}
.indented-paragraph {
  text-indent: 2em;
  font-size: 1rem;
  margin-bottom: 0.1rem;
}
